#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os

class Config(object):
    BASEDIR = os.path.abspath(os.path.dirname(__file__))
    #BASEURI = 'https://wm168.wan0002.com/'
    BASEURI = 'https://aom168.39899.com/'


    DEBUG = False
    HOST = '0.0.0.0'
    PORT = 5000

    SECRET_KEY = "nonono"
    PAGELIMIT = 5

    # 数据库
    class DB(object):
        DATABASE = 'bank_logger'

    SQLALCHEMY_DATABASE_URI = 'sqlite:///{db}.db'.format(db=DB.DATABASE)
    SQLALCHEMY_TRACK_MODIFICATIONS = True
    SQLALCHEMY_ECHO = False  # 打印 SQL 语句


class Development(Config):
    DEBUG = True

    # 测试用cookies
    COOKIES={'T0_IPL_AVRbbbbbbbbbbbbbbbb': 'GMDFLJPECIPLLAKKDLKNDJONGIKCHKEKKFFHEKPEJKHAPEDMBOBLDBGMIPMIKKAOJHHDBIDMMEEMMBCJCLGAGCEMPLFHACFGPKINLALPJMEMBJJIDEJEFCPAKKNLCEIA', 'PHPSESSID': '22nhnqrtj3hiso9mlr0d89tt87'}
class Production(Config):
    DEBUG = False
    SECRET_KEY = "hahaha"